/*
 * 项目配置文件
 * @author li.xiaomei
 */

exports.root = {
  "src": "./demo",
  "dest": "./public"
};

exports.js = {
  "src": "static/js",
  "dest": "static/js",
  "extensions": ["js", "json", "tpl"],
  "babel": {
    "presets": ["es2015", "stage-1"],
    "plugins": []
  },
  "extractSharedJs": false,
  //是否需要将css文件打包成单独的css文件(true) | 将CSS以style标签的形式插入到页面中（false）
  "extractCss": false
};

exports.css = {
  "src": "static/css",
  "dest": "static/css",
  "autoprefixer": {
    "browsers": ["last 3 version"]
  },
  "sass": {},
  "extensions": ["scss", "sass", "css"]
};

exports.html = {
  "src": "html",
  "dest": "html",
  "htmlmin": {
    "collapseWhitespace": true
  },
  "extensions": ["html", "json"]
};



//需要编译输出的文件配置entries
exports.entries = {
  "test": ["./test/entry.js"]
};

//别名配置
exports.alias = {
  "scripts": "demo/static/js"
};

exports.production = {
  "rev": true
};
